DebugBuild Constant

Used to determine whether the current operating environment is the IDE. DebugBuild is True when you compile the project by clicking the Run button in the Toolbar.

result=DebugBuild

Part

Type

Description

result

Boolean

True if the application is running within REALbasic, i.e., you chose Debug . Run.



Example

The following example displays a message box only in the IDE.

 #if DebugBuild then
  MsgBox "You're in the IDE"
#endif

See Also

RBVersion, RBVersionString, TargetBigEndian, TargetCarbon, TargetHasGUI, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetMacOSClassic, TargetWin32, TargetX86 constants; #If statement.